const systemRoute = {
  path: 'system',
  name: 'system',
  redirect: '/admin/system/user-manage',
  meta: { title: '系统运维' },
  component: () => import('@/layout/admin/public.vue'),
  children: [
    {
      path: 'unit-manage',
      name: 'unit-manage',
      meta: { title: '校区部门管理' },
      component: () => import('@/views/Admin/system/unitManage/index.vue'),
    },
    {
      path: 'role-manage',
      name: 'role-manage',
      meta: { title: '角色权限管理' },
      component: () => import('@/views/Admin/system/role/index.vue'),
    },
    {
      path: 'user-manage',
      name: 'user-manage',
      meta: { title: '用户管理' },
      redirect: '/admin/system/user-manage/userManage',
      component: () => import('@/views/Admin/user/userManage/index.vue'),
      children: [
        {
          path: 'user-edit',
          name: 'user-edit',
          meta: { title: '用户新增-编辑' },
          component: () => import('@/views/Admin/user/userManage/userEdit.vue'),
        },
        {
          path: 'userManage',
          name: 'userManage',
          meta: { title: '' },
          component: () =>
            import('@/views/Admin/user/userManage/userManage.vue'),
        },
      ],
    },
    {
      path: 'audit-flow',
      name: 'audit-flow',
      meta: { title: '审核活动管理', flag: false },
      component: () => import('@/views/Admin/auditManage/auditFlow/index.vue'),
      children: [
        {
          path: 'flow-node',
          name: 'flow-node',
          meta: { title: '节点管理', flag: true },
          component: () =>
            import('@/views/Admin/auditManage/auditFlowNode/index.vue'),
        },
        {
          path: 'experts-score',
          name: 'experts-score',
          meta: { title: '评分项管理', flag: true },
          component: () =>
            import('@/views/Admin/auditManage/expertsScoreItem/index.vue'),
        },
      ],
    },
    {
      path: 'review-active',
      name: 'review-active',
      meta: { title: '评审活动管理' },
      redirect: '/admin/system/review-active/list',
      component: () =>
        import('@/views/Admin/auditManage/reviewActive/index.vue'),
      children: [
        {
          path: 'list',
          name: 'review-list',
          // meta: { title: "评审活动列表" },
          component: () =>
            import(
              '@/views/Admin/auditManage/reviewActive/reviewList/index.vue'
            ),
        },
        {
          path: 'manage',
          name: 'review-manage',
          meta: { title: '评审活动管理', dataType: 3 },
          redirect: '/admin/system/review-active/manage/info',
          component: () =>
            import(
              '@/views/Admin/auditManage/reviewActive/reviewManage/index.vue'
            ),
          children: [
            {
              path: 'info',
              name: 'review-info',
              meta: { title: '基础信息' },
              component: () =>
                import(
                  '@/views/Admin/auditManage/reviewActive/reviewManage/reviewInfo/index.vue'
                ),
            },
            {
              path: 'team',
              name: 'review-team',
              meta: { title: '专家成员' },
              component: () =>
                import(
                  '@/views/Admin/auditManage/reviewActive/reviewManage/reviewTeam/index.vue'
                ),
            },
            {
              path: 'score',
              name: 'review-score',
              meta: { title: '评分标准' },
              component: () =>
                import(
                  '@/views/Admin/auditManage/reviewActive/reviewManage/reviewScore/index.vue'
                ),
            },
            {
              path: 'resource',
              name: 'review-resource',
              meta: { title: '参评资源' },
              component: () =>
                import(
                  '@/views/Admin/auditManage/reviewActive/reviewManage/reviewResource/index.vue'
                ),
            },
            {
              path: 'result',
              name: 'review-result',
              meta: { title: '评审结果' },
              component: () =>
                import(
                  '@/views/Admin/auditManage/reviewActive/reviewManage/reviewResult/index.vue'
                ),
            },
            {
              path: 'resource-select',
              name: 'resource-select',
              meta: { title: '选择资源' },
              component: () =>
                import(
                  '@/views/Admin/auditManage/reviewActive/reviewManage/reviewResource/ResourceSelect.vue'
                ),
            },
          ],
        },
      ],
    },
    {
      path: 'webInformation',
      name: 'webInformation',
      meta: { title: '网站要素管理', scopeType: '1' },
      component: () => import('@/views/Admin/system/webBaseInfo/index.vue'),
    },
    {
      path: 'defaultImg',
      name: 'defaultImg',
      meta: { title: '默认图管理', scopeType: '2' },
      component: () => import('@/views/Admin/system/webBaseInfo/index.vue'),
    },
    {
      path: 'menu-manage',
      name: 'menu-manage',
      meta: { title: '菜单配置管理' },
      component: () => import('@/views/Admin/system/menuManage/index.vue'),
    },
    {
      path: 'system-log',
      name: 'system-log',
      meta: { title: '系统日志' },
      component: () => import('@/views/Admin/system/systemLog/index.vue'),
    },
    {
      path: 'system-config',
      name: 'system-config',
      meta: { title: '系统配置' },
      component: () => import('@/views/Admin/system/config/index.vue'),
    },
    {
      path: 'friend-link',
      name: 'friend-link',
      meta: { title: '友情链接' },
      component: () => import('@/views/Admin/system/friendLink/index.vue'),
    },
    {
      path: 'dictionary',
      name: 'dictionary',
      meta: { title: '数据字典' },
      component: () => import('@/views/Admin/system/dictionary/index.vue'),
    },
    {
      path: 'dictionaryDet',
      name: 'dictionaryDet',
      meta: { title: '数据字典-子集' },
      component: () =>
        import('@/views/Admin/system/dictionary/dictionaryDet.vue'),
    },
    {
      path: 'feedback',
      name: 'feedback',
      meta: { title: '意见反馈' },
      component: () => import('@/views/Admin/system/feedback/index.vue'),
    },
    {
      path: 'correction',
      name: 'correction',
      meta: { title: '我要纠错' },
      component: () => import('@/views/Admin/system/correction/index.vue'),
    },
  ],
}
export default systemRoute
